<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Goods_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-goods_id" data-rule="required" data-source="mall/goods/goods/selectpage" data-field="productno" class="form-control selectpage" name="row[goods_id]" type="text" value="{$row.goods_id}" disabled>
        </div>
    </div>
    {php}
        $specitem_ids = explode(":", $row['specitem_ids']);
    {/php}
    {volist name="config.specs" id="vo"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{$vo.specname}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-specitem_ids_{$vo.id}" data-rule="required" data-source="mall/goods/specitem/selectpage" data-primary-key="itemId" data-field="itemname" data-params='{"custom[goods_id]":"$row.goods_id", "custom[spec_id]":"$vo.id"}' data-multiple="true" class="form-control selectpage" name="row[specitem_ids_{$vo.id}]" type="text" value="{$specitem_ids[$i-1]}" disabled>
        </div>
    </div>
    {/volist}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Productno')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-productno" data-rule="required" class="form-control" name="row[productno]" type="text" value="{$row.productno}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Marketprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-marketprice" data-rule="required" class="form-control" step="0.01" name="row[marketprice]" type="number" value="{$row.marketprice}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Specprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-specprice" data-rule="required" class="form-control" step="0.01" name="row[specprice]" type="number" value="{$row.specprice}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Specstock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-specstock" data-rule="required" class="form-control" name="row[specstock]" type="number" value="{$row.specstock}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Warnstock')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-warnstock" data-rule="required" class="form-control" name="row[warnstock]" type="number" value="{$row.warnstock}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Salenum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-salenum" data-rule="required" class="form-control" name="row[salenum]" type="number" value="{$row.salenum}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Defaultis')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <input  id="c-defaultis" name="row[defaultis]" type="hidden" value="{$row.defaultis}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher disabled" data-input-id="c-defaultis" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {eq name="$row.defaultis" value="0"}fa-flip-horizontal text-gray{/eq} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
